home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODFDev / Form / Sources / Frame.h < prev    next >
Encoding:
Text File  |  1996-09-17  |  3.3 KB  |  126 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                Frame.h
  4. //    Release Version:    $ ODF 2 $
  5. //
  6. //    Copyright:            (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  7. //
  8. //========================================================================================
  9.  
  10. #ifndef FRAME_H
  11. #define FRAME_H
  12.  
  13. #ifndef DEFINES_K
  14. #include "Defines.k"
  15. #endif
  16.  
  17. // ----- Framework Includes -----
  18.  
  19. #ifndef FWFRAME_H
  20. #include "FWFrame.h"
  21. #endif
  22.  
  23. #ifndef FWEVENT_H
  24. #include "FWEvent.h"
  25. #endif
  26.  
  27. #ifndef FWLISTBX_H
  28. #include "FWListBx.h"
  29. #endif
  30.  
  31. // ----- Foundation Layer -----
  32.  
  33. #ifndef FWRECEVR_H
  34. #include "FWRecevr.h"
  35. #endif
  36.  
  37. //==============================================================================
  38. // Forward Declarations
  39. //==============================================================================
  40.  
  41. class CFormPart;
  42. class FW_CMenuEvent;
  43. class FW_CNotification;
  44. class FW_CPushButton;
  45. class FW_CScrollBarScroller;
  46. class FW_CGrowBox;
  47. class FW_CEditView;
  48. class FW_CIdler;
  49. class FW_CViewTabber;
  50. class FW_CMouseEvent;
  51. class FW_CClipboardCommand;
  52. class FW_CMenuEvent;
  53.  
  54. //==============================================================================
  55. // CFormFrame
  56. //==============================================================================
  57.  
  58. class CFormFrame : public FW_CFrame, public FW_MReceiver
  59. {
  60. //----------------------------------------------------------------------------------------
  61. //    Initialization/Destruction
  62. //
  63.   public:
  64.       FW_DECLARE_CLASS
  65.     FW_DECLARE_AUTO(CFormFrame)
  66.  
  67.     CFormFrame(Environment* ev, 
  68.                 ODFrame* odFrame, 
  69.                 FW_CPresentation* presentation, 
  70.                 CFormPart* formPart);
  71.  
  72.     virtual ~CFormFrame();
  73.     
  74. //----------------------------------------------------------------------------------------
  75. //    Inherited API
  76. //
  77.     virtual void         Draw(Environment *ev, ODFacet* odFacet, ODShape* invalidShape);
  78.     virtual void         FrameShapeChanged(Environment *ev);
  79.     
  80.     // ----- Views -----
  81.     virtual void        CreateSubViews(Environment* ev);
  82.     virtual void        PostCreateViewFromStream(Environment* ev);
  83.  
  84.     // ----- FW_MReceiver overrides ----- 
  85.     virtual void         HandleNotification(Environment* ev, const FW_CNotification& notification);
  86.  
  87.     // ----- Internalize/Externalize -----
  88. //    virtual void        ExternalizeFrame(Environment* ev, ODStorageUnitView* storageUnitView);
  89. //    virtual void        InternalizeFrame(Environment* ev, ODStorageUnitView* storageUnitView);
  90.     
  91.     // ----- Printing
  92.     virtual FW_CPrintHandler* NewPrintHandler(Environment* ev);
  93.  
  94.     // ----- Text-edit Clipboard
  95.     FW_CClipboardCommand* NewClipboardCommand(Environment* ev, ODCommandID commandID);
  96.  
  97. //----------------------------------------------------------------------------------------
  98. //    New API
  99. //
  100.   public:
  101.     void                 OpenPasswordDialog(Environment* ev);
  102.     void                ModifyPlatformList(Environment* ev, FW_Boolean addItem);
  103.     
  104.     CFormPart*             GetFormPart();
  105.      void                 GetContentRect(Environment* ev, FW_CRect& rect);
  106.  
  107. //----------------------------------------------------------------------------------------
  108. //    Data Members
  109. //
  110.   private:
  111.     CFormPart*             fFormPart;
  112.     FW_CIdler*            fIdler;
  113.     FW_CViewTabber*        fViewTabber;
  114. };
  115.  
  116. //==============================================================================
  117. // CFormFrame Inlines
  118. //==============================================================================
  119.  
  120. inline CFormPart* CFormFrame::GetFormPart()
  121. {
  122.     return fFormPart;
  123. }
  124.  
  125. #endif
  126.